#include<iostream>
using namespace std;
#pragma once
class Complex{
	public:
		Complex();
		Complex(double d,double i);
		virtual~Complex();
		Complex& operator=(const Complex &c);
		Complex operator+(const Complex&c)const;
		Complex operator+=(const Complex&c);
		bool operator==(const Complex&c)const;
		double getReal();
		void setReal(double d);
		double getImage();
		void setImage(double i);
		friend ostream& operator<<(ostream& os, Complex& c);
		friend istream& operator>>(istream& is, Complex& c);
	private:
		double _real;
		double _image;
};
